<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 11:07:58 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git rerere</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="d096af5f132b3e08d25aaa41dbcca124bc51b8f6ab838fa19854e48d193f0f94/42" data-source="git-rerere" onmousemove="i18n(this)">git-rerere</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="20bd63b6b6364ef95118e222242af4a54610f8e61eeb964f26761c4b87e81a8d/3d" data-source="git-rerere - Reuse recorded resolution of conflicted merges" onmousemove="i18n(this)">git-rerere &mdash; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ycy;&khcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&jcy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-css">git rerere <span class="hljs-selector-attr">[clear | forget &lt;pathspec&gt;&hellip;| diff | status | remaining | gc]</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="347eab6cd12d3ed072c6f6a7675a588329dc930cdc4d21fa7d9267b50b6847e9/b1" data-source="In a workflow employing relatively long lived topic branches, the developer sometimes needs to resolve the same conflicts over and over again until the topic branches are done (either merged to the &amp;quot;release&amp;quot; branch, or sent out and accepted upstream)." onmousemove="i18n(this)">&Vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&iecy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &dcy;&ocy;&lcy;&gcy;&ocy;&zhcy;&icy;&vcy;&ucy;&shchcy;&icy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &tcy;&iecy;&mcy;, &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&ucy; &icy;&ncy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&icy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&tcy;&softcy; &ocy;&dcy;&ncy;&icy; &icy; &tcy;&iecy; &zhcy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &scy;&ncy;&ocy;&vcy;&acy; &icy; &scy;&ncy;&ocy;&vcy;&acy;, &pcy;&ocy;&kcy;&acy; &vcy;&iecy;&tcy;&kcy;&icy; &tcy;&iecy;&mcy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy;&ycy; (&lcy;&icy;&bcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&ycy; &scy; &vcy;&iecy;&tcy;&kcy;&ocy;&jcy;  &quot;release&quot; , &lcy;&icy;&bcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &icy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&ycy; &vcy;&vcy;&iecy;&rcy;&khcy; &pcy;&ocy; &tcy;&iecy;&chcy;&iecy;&ncy;&icy;&yucy;).</span></p> <p><span data-i18n="ed3768038c9a459036d675397a3b5abc3c658aae0047f69427d00841e3648c3c/d1" data-source="This command assists the developer in this process by recording conflicted automerge results and corresponding hand resolve results on the initial manual merge, and applying previously recorded hand resolutions to their corresponding automerge results." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &pcy;&ocy;&mcy;&ocy;&gcy;&acy;&iecy;&tcy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&ucy; &vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&iecy;, &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yacy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ocy;&rcy;&iecy;&chcy;&icy;&vcy;&ycy;&iecy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &icy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &rcy;&ucy;&chcy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&vcy;&ocy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&ucy;&chcy;&ncy;&ocy;&mcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&icy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&yacy; &rcy;&acy;&ncy;&iecy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; &rcy;&ucy;&chcy;&ncy;&ycy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &kcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy;&mcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;.</span></p> <div> <div class="table-responsive"><table class="table"> <tr> <td> <div><span data-i18n="d8da2c49df39d91df7ecd199b92da7bf264f026242ccc69b08daeadfe587c45b/a2" data-source="Note" onmousemove="i18n(this)">Note</span></div> </td> <td><span data-i18n="d632658efd7e020e945799e001264b69ee1ee2261e34b9af71d8596071546829/a6" data-source="You need to set the configuration variable &lt;code&gt;rerere.enabled&lt;/code&gt; in order to enable this command." onmousemove="i18n(this)">&Vcy;&acy;&mcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>rerere.enabled</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;.</span></td> </tr> </table></div> </div> </div> <h2 class="text-body-emphasis"  id="_commands"><span data-i18n="b269dc4e81a528a4d42e9e74101923514a626f55f8dd76b1461e0690e72d041a/f5" data-source="Commands" onmousemove="i18n(this)">Commands</span></h2> <div> <p><span data-i18n="8c691c6086648d87b57c19077ecd45dc52ab4976b94f34497da23e6ab9d0b157/e1" data-source="Normally, &lt;code&gt;git rerere&lt;/code&gt; is run without arguments or user-intervention. However, it has several commands that allow it to interact with its working state." onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ocy;  <code>git rerere</code>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &bcy;&iecy;&zcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy; &icy;&lcy;&icy; &vcy;&mcy;&iecy;&shcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&tcy;&vcy;&acy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ucy; &ncy;&iecy;&gcy;&ocy; &iecy;&scy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&yucy;&tcy; &iecy;&mcy;&ucy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy; &iecy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy;.</span></p> <div> <dl> <dt id="Documentation/git-rerere.txt-emclearem"> <span data-i18n="9157790d7f38674e29cfb085f66ea11f10b5ca75fcbeeda822d65e60a17920df/cf" data-source="&lt;em&gt;clear&lt;/em&gt;" onmousemove="i18n(this)"><em>clear</em></span> </dt> <dd> <p><span data-i18n="c80b5a83861316cceae53dbd3a3abdd8fbabe57736c83e6aedf063f1b63e7f28/76" data-source="Reset the metadata used by rerere if a merge resolution is to be aborted. Calling &lt;code&gt;git am [--skip|--abort]&lt;/code&gt; or &lt;code&gt;git rebase [--skip|--abort]&lt;/code&gt; will automatically invoke this command." onmousemove="i18n(this)">&Scy;&bcy;&rcy;&ocy;&scy;&softcy;&tcy;&iecy; &mcy;&iecy;&tcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&iecy; rerere, &iecy;&scy;&lcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&iecy;&rcy;&vcy;&acy;&ncy;&ocy;. &Vcy;&ycy;&zcy;&ocy;&vcy;  <code>git am [--skip|--abort]</code>  &icy;&lcy;&icy;  <code>git rebase [--skip|--abort]</code>  &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy;&tcy; &ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;.</span></p> </dd> <dt id="Documentation/git-rerere.txt-emforgetemltpathspecgt"> <span data-i18n="783b17243c752466e2accf28cfbcfe4868e12f09ca23659b1a5b8364acd9369f/cb" data-source="&lt;em&gt;forget&lt;/em&gt; &amp;lt;pathspec&amp;gt;" onmousemove="i18n(this)"><em>forget</em> &lt;pathspec&gt;</span></dt> <dd> <p><span data-i18n="4f103a4f72a2fee4cf0ba95ad8215083aa939f39b1a4ab614ad24a9b08136af0/59" data-source="Reset the conflict resolutions which rerere has recorded for the current conflict in &amp;lt;pathspec&amp;gt;." onmousemove="i18n(this)">&Scy;&bcy;&rcy;&ocy;&scy;&softcy;&tcy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; rerere &dcy;&lcy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy; &vcy; &lt;pathspec&gt;.</span></p> </dd> <dt id="Documentation/git-rerere.txt-emdiffem"> <span data-i18n="197e4086ff115b0211e06918005d03175c637f55fbb0ae3f0dccb36f75ffc13d/b7" data-source="&lt;em&gt;diff&lt;/em&gt;" onmousemove="i18n(this)"><em>diff</em></span> </dt> <dd> <p><span data-i18n="6f39c1f14c40270f053daf27997464ec5ce37dbdae8b1c83feecd580deff6242/b5" data-source="Display diffs for the current state of the resolution. It is useful for tracking what has changed while the user is resolving conflicts. Additional arguments are passed directly to the system &lt;code&gt;diff&lt;/code&gt; command installed in PATH." onmousemove="i18n(this)">&Ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&icy;&jcy; &dcy;&lcy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy; &dcy;&lcy;&yacy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&ocy;&scy;&softcy;, &pcy;&ocy;&kcy;&acy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&iecy;&tcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy;. &Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>diff</code> , &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &vcy; PATH.</span></p> </dd> <dt id="Documentation/git-rerere.txt-emstatusem"> <span data-i18n="572bda933853cb245359123fd2d12d822a2ec45f025c9f13af9f1333659cead2/e9" data-source="&lt;em&gt;status&lt;/em&gt;" onmousemove="i18n(this)"><em>status</em></span> </dt> <dd> <p><span data-i18n="89694666bf4a887cf6f40a71b78a4d793e2bc529dd013c234fb0888749e55f6e/2d" data-source="Print paths with conflicts whose merge resolution rerere will record." onmousemove="i18n(this)">&Vcy;&ycy;&vcy;&iecy;&scy;&tcy;&icy; &pcy;&ucy;&tcy;&icy; &scy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;&mcy;&icy;, &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; rerere.</span></p> </dd> <dt id="Documentation/git-rerere.txt-emremainingem"> <span data-i18n="3cd6e83421e73f3bacdc53ea9d2851305fa9b766ff686d033e4b7e13d94adba4/d2" data-source="&lt;em&gt;remaining&lt;/em&gt;" onmousemove="i18n(this)"><em>remaining</em></span> </dt> <dd> <p><span data-i18n="67db1748c09e49abae2e7d0915232d1247ecd77b625d0886c6346faa80d148a5/87" data-source="Print paths with conflicts that have not been autoresolved by rerere. This includes paths whose resolutions cannot be tracked by rerere, such as conflicting submodules." onmousemove="i18n(this)">&Vcy;&ycy;&vcy;&iecy;&scy;&tcy;&icy; &pcy;&ucy;&tcy;&icy; &scy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &bcy;&ycy;&lcy;&icy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ycy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; rerere. &Scy;&yucy;&dcy;&acy; &vcy;&khcy;&ocy;&dcy;&yacy;&tcy; &pcy;&ucy;&tcy;&icy;, &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy;&vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&dcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; rerere, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy;.</span></p> </dd> <dt id="Documentation/git-rerere.txt-emgcem"> <span data-i18n="d7d03c433a20f779ebeeb5ce852303d83fdaea465bf5bfef6c13aed43140d0db/07" data-source="&lt;em&gt;gc&lt;/em&gt;" onmousemove="i18n(this)"><em>gc</em></span> </dt> <dd> <p><span data-i18n="35012da349d480fe70fb35a4e8040e7ae348e5928ad4f23269b13c610ca754bc/5f" data-source="Prune records of conflicted merges that occurred a long time ago. By default, unresolved conflicts older than 15 days and resolved conflicts older than 60 days are pruned. These defaults are controlled via the &lt;code&gt;gc.rerereUnresolved&lt;/code&gt; and &lt;code&gt;gc.rerereResolved&lt;/code&gt; configuration variables respectively." onmousemove="i18n(this)">&Scy;&ocy;&kcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy; &ocy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy;&yucy;&shchcy;&icy;&khcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;&khcy;, &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&iecy;&dcy;&shcy;&icy;&khcy; &dcy;&acy;&vcy;&ncy;&ycy;&mcy;-&dcy;&acy;&vcy;&ncy;&ocy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ncy;&ycy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &scy;&tcy;&acy;&rcy;&shcy;&iecy; 15&nbsp;&dcy;&ncy;&iecy;&jcy; &icy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ncy;&ycy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &scy;&tcy;&acy;&rcy;&shcy;&iecy; 60&nbsp;&dcy;&ncy;&iecy;&jcy;. &Ecy;&tcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>gc.rerereUnresolved</code>  &icy;  <code>gc.rerereResolved</code>  &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_discussion"><span data-i18n="5eb6cf647d2c5d14a044e2d103dcef4cf0cdc872434c374debc1043092bc4746/dd" data-source="Discussion" onmousemove="i18n(this)">Discussion</span></h2> <div> <p><span data-i18n="7d9536329a8bf32d588155aad898f9787335ce01e9521ae38f0bb5a47a094e87/85" data-source="When your topic branch modifies an overlapping area that your master branch (or upstream) touched since your topic branch forked from it, you may want to test it with the latest master, even before your topic branch is ready to be pushed upstream:" onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&kcy;&rcy;&ycy;&vcy;&acy;&yucy;&shchcy;&ucy;&yucy;&scy;&yacy; &ocy;&bcy;&lcy;&acy;&scy;&tcy;&softcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &zcy;&acy;&tcy;&rcy;&ocy;&ncy;&ucy;&lcy;&acy; &vcy;&acy;&shcy;&acy; &gcy;&lcy;&acy;&vcy;&ncy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; (&icy;&lcy;&icy; &vcy;&ycy;&shcy;&iecy;&scy;&tcy;&ocy;&yacy;&shchcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy;) &scy; &tcy;&iecy;&khcy; &pcy;&ocy;&rcy;, &kcy;&acy;&kcy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &ocy;&tcy;&dcy;&iecy;&lcy;&icy;&lcy;&acy;&scy;&softcy; &ocy;&tcy; &ncy;&iecy;&iecy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &zcy;&acy;&khcy;&ocy;&tcy;&iecy;&tcy;&softcy; &pcy;&rcy;&ocy;&tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &iecy;&iecy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&jcy; &gcy;&lcy;&acy;&vcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy;, &dcy;&acy;&zhcy;&iecy; &dcy;&ocy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy;&acy; &kcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &vcy;&vcy;&iecy;&rcy;&khcy; &pcy;&ocy; &vcy;&iecy;&tcy;&kcy;&iecy;:</span></p> <div> <div> <pre class="hljs language-css">              o---*-<span class="hljs-attr">--o</span> topic
             /
    o-<span class="hljs-attr">--o---o---</span>*-<span class="hljs-attr">--o---o</span> master</pre> </div> </div> <p><span data-i18n="fcccb5795b49a19c4de8c57054efcd5e4adc983de85555d9f8250017e9571a4b/b0" data-source="For such a test, you need to merge master and topic somehow. One way to do it is to pull master into the topic branch:" onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &tcy;&acy;&kcy;&ocy;&gcy;&ocy; &tcy;&iecy;&scy;&tcy;&acy; &ncy;&ucy;&zhcy;&ncy;&ocy; &kcy;&acy;&kcy;-&tcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&icy;&tcy;&softcy; &mcy;&acy;&scy;&tcy;&iecy;&rcy; &icy; &tcy;&iecy;&mcy;&ucy;. &Ocy;&dcy;&icy;&ncy; &icy;&zcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ocy;&vcy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy; &mdash; &pcy;&iecy;&rcy;&iecy;&tcy;&acy;&shchcy;&icy;&tcy;&softcy; master &vcy; &vcy;&iecy;&tcy;&kcy;&ucy; &tcy;&iecy;&mcy;&ycy;:</span></p> <div> <div> <pre class="hljs language-sql">        $ git switch topic
        $ git <span class="hljs-keyword">merge</span> master

              o<span class="hljs-comment">---*---o---+ topic</span>
             <span class="hljs-operator">/</span>           <span class="hljs-operator">/</span>
    o<span class="hljs-comment">---o---o---*---o---o master</span></pre> </div> </div> <p><span data-i18n="1e39d445c4d38dee7355b26b3cd6f83d80fa1999c153c142c37bc6305cec4981/9e" data-source="The commits marked with &lt;code&gt;*&lt;/code&gt; touch the same area in the same file; you need to resolve the conflicts when creating the commit marked with &lt;code&gt;+&lt;/code&gt;. Then you can test the result to make sure your work-in-progress still works with what is in the latest master." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy;, &ocy;&tcy;&mcy;&iecy;&chcy;&iecy;&ncy;&ncy;&ycy;&iecy;  <code>*</code> , &kcy;&acy;&scy;&acy;&yucy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy; &tcy;&ocy;&jcy; &zhcy;&iecy; &ocy;&bcy;&lcy;&acy;&scy;&tcy;&icy; &vcy; &ocy;&dcy;&ncy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy;; &vcy;&acy;&mcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &pcy;&rcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &ocy;&tcy;&mcy;&iecy;&chcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy;  <code>+</code> . &Zcy;&acy;&tcy;&iecy;&mcy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&bcy;&iecy;&dcy;&icy;&tcy;&softcy;&scy;&yacy;, &chcy;&tcy;&ocy; &vcy;&acy;&shcy;&acy; &ncy;&iecy;&zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&ncy;&acy;&yacy; &rcy;&acy;&bcy;&ocy;&tcy;&acy; &pcy;&ocy;-&pcy;&rcy;&iecy;&zhcy;&ncy;&iecy;&mcy;&ucy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&iecy;&tcy; &scy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&iecy;&jcy; &mcy;&acy;&scy;&tcy;&iecy;&rcy;&acy;.</span></p> <p><span data-i18n="878db3907c8b56358d3a25cc8207797849b3bc8ce751b88e791ea2bdd27a0b22/88" data-source="After this test merge, there are two ways to continue your work on the topic. The easiest is to build on top of the test merge commit &lt;code&gt;+&lt;/code&gt;, and when your work in the topic branch is finally ready, pull the topic branch into master, and/or ask the upstream to pull from you. By that time, however, the master or the upstream might have been advanced since the test merge &lt;code&gt;+&lt;/code&gt;, in which case the final commit graph would look like this:" onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &iecy;&scy;&tcy;&softcy; &dcy;&vcy;&acy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&acy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&icy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &ncy;&acy;&dcy; &ecy;&tcy;&ocy;&jcy; &tcy;&iecy;&mcy;&ocy;&jcy;. &Scy;&acy;&mcy;&ycy;&jcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &mdash; &pcy;&ocy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;  <code>+</code> , &icy; &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&acy;&shcy;&acy; &rcy;&acy;&bcy;&ocy;&tcy;&acy; &vcy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy;, &ncy;&acy;&kcy;&ocy;&ncy;&iecy;&tscy;, &bcy;&ucy;&dcy;&iecy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy;&acy;, &pcy;&iecy;&rcy;&iecy;&ncy;&iecy;&scy;&icy;&tcy;&iecy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy; &vcy; master &icy;/&icy;&lcy;&icy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&tcy;&iecy; &vcy;&ocy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &ocy;&tcy; &vcy;&acy;&scy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &kcy; &tcy;&ocy;&mcy;&ucy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &gcy;&lcy;&acy;&vcy;&ncy;&ycy;&jcy; &icy;&lcy;&icy; &vcy;&ocy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &mcy;&ocy;&gcy;&lcy;&icy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&ocy;&dcy;&vcy;&icy;&ncy;&ucy;&tcy;&ycy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;  <code>+</code> , &icy; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &gcy;&rcy;&acy;&fcy;&icy;&kcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-ruby">        <span class="hljs-variable">$ </span>git switch topic
        <span class="hljs-variable">$ </span>git merge master
        <span class="hljs-variable">$ </span>... work on both topic <span class="hljs-keyword">and</span> master branches
        <span class="hljs-variable">$ </span>git switch master
        <span class="hljs-variable">$ </span>git merge topic

              o---*---o---+---o---o topic
             /           <span class="hljs-regexp">/         \
    o---o---o---*---o---o---o---o---+ master</span></pre> </div> </div> <p><span data-i18n="3f5e52d773ee6d0283d8ba6e24e785463c6d446481d3472aa95a17589bd6fbac/a8" data-source="When your topic branch is long-lived, however, your topic branch would end up having many such &amp;quot;Merge from master&amp;quot; commits on it, which would unnecessarily clutter the development history. Readers of the Linux kernel mailing list may remember that Linus complained about such too frequent test merges when a subsystem maintainer asked to pull from a branch full of &amp;quot;useless merges&amp;quot;." onmousemove="i18n(this)">&Ocy;&dcy;&ncy;&acy;&kcy;&ocy;, &iecy;&scy;&lcy;&icy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &dcy;&ocy;&lcy;&gcy;&ocy;&zhcy;&icy;&vcy;&ucy;&shchcy;&acy;&yacy;, &vcy; &vcy;&acy;&shcy;&iecy;&jcy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &mcy;&ncy;&ocy;&gcy;&ocy; &tcy;&acy;&kcy;&icy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;  &quot;Merge from master&quot; , &chcy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&zcy;&lcy;&icy;&shcy;&ncy;&iecy; &zcy;&acy;&gcy;&rcy;&ocy;&mcy;&ocy;&zhcy;&dcy;&acy;&tcy;&softcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&yucy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy;. &CHcy;&icy;&tcy;&acy;&tcy;&iecy;&lcy;&icy; &scy;&pcy;&icy;&scy;&kcy;&acy; &rcy;&acy;&scy;&scy;&ycy;&lcy;&kcy;&icy; &yacy;&dcy;&rcy;&acy; Linux, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &pcy;&ocy;&mcy;&ncy;&yacy;&tcy;, &chcy;&tcy;&ocy; &Lcy;&icy;&ncy;&ucy;&scy; &zhcy;&acy;&lcy;&ocy;&vcy;&acy;&lcy;&scy;&yacy; &ncy;&acy; &scy;&lcy;&icy;&shcy;&kcy;&ocy;&mcy; &chcy;&acy;&scy;&tcy;&ycy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;, &kcy;&ocy;&gcy;&dcy;&acy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&icy;&scy;&tcy; &pcy;&ocy; &scy;&ocy;&pcy;&rcy;&ocy;&vcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&yucy; &pcy;&ocy;&dcy;&scy;&icy;&scy;&tcy;&iecy;&mcy;&ycy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&lcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &vcy;&iecy;&tcy;&kcy;&icy;, &pcy;&ocy;&lcy;&ncy;&ocy;&jcy;  &quot;useless merges&quot; .</span></p> <p><span data-i18n="13312a48a2cf114c29b5cf8039a46c95736cbc0a9ed52321f72c0094309bddcc/03" data-source="As an alternative, to keep the topic branch clean of test merges, you could blow away the test merge, and keep building on top of the tip before the test merge:" onmousemove="i18n(this)">&Vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ycy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &vcy;&iecy;&tcy;&kcy;&ucy; &tcy;&iecy;&mcy;&ycy; &chcy;&icy;&scy;&tcy;&ocy;&jcy; &ocy;&tcy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ycy;&khcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&jcy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ucy;&bcy;&rcy;&acy;&tcy;&softcy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &icy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&acy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &pcy;&ocy;&dcy;&scy;&kcy;&acy;&zcy;&kcy;&ucy; &dcy;&ocy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;:</span></p> <div> <div> <pre class="hljs language-ruby">        <span class="hljs-variable">$ </span>git switch topic
        <span class="hljs-variable">$ </span>git merge master
        <span class="hljs-variable">$ </span>git reset --hard <span class="hljs-variable constant_">HEAD</span>^ ;<span class="hljs-comment" title="# rewind the test merge"># &pcy;&iecy;&rcy;&iecy;&mcy;&acy;&tcy;&ycy;&vcy;&acy;&iecy;&mcy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;</span>
        <span class="hljs-variable">$ </span>... work on both topic <span class="hljs-keyword">and</span> master branches
        <span class="hljs-variable">$ </span>git switch master
        <span class="hljs-variable">$ </span>git merge topic

              o---*---o-------o---o topic
             /                     \
    o---o---o---*---o---o---o---o---+ master</pre> </div> </div> <p><span data-i18n="9e6633f466904dce23234c3f9bd97e156eb79c7b57008d5fa3d7a46ac6046374/84" data-source="This would leave only one merge commit when your topic branch is finally ready and merged into the master branch. This merge would require you to resolve the conflict, introduced by the commits marked with &lt;code&gt;*&lt;/code&gt;. However, this conflict is often the same conflict you resolved when you created the test merge you blew away. &lt;code&gt;git rerere&lt;/code&gt; helps you resolve this final conflicted merge using the information from your earlier hand resolve." onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &ocy;&scy;&tcy;&acy;&ncy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&acy;&kcy;&ocy;&ncy;&iecy;&tscy; &gcy;&ocy;&tcy;&ocy;&vcy;&acy; &icy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&acy; &scy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&ocy;&jcy;. &Ecy;&tcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy; &ocy;&tcy; &vcy;&acy;&scy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;, &vcy;&ycy;&zcy;&vcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy;&mcy;&icy;, &ocy;&tcy;&mcy;&iecy;&chcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy;  <code>*</code>  . &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ecy;&tcy;&ocy;&tcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy; &chcy;&acy;&scy;&tcy;&ocy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &tcy;&iecy;&mcy; &zhcy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&lcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&lcy;&icy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &vcy;&ycy; &ucy;&ncy;&icy;&chcy;&tcy;&ocy;&zhcy;&icy;&lcy;&icy;.  <code>git rerere</code>  &pcy;&ocy;&mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&acy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy;, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ucy;&yucy; &vcy;&acy;&mcy;&icy; &rcy;&acy;&ncy;&iecy;&iecy;.</span></p> <p><span data-i18n="ba3545b806cc0f9b68d8e9fd02483d091f89ca0aa08e41adbfdd93e8a26eba63/da" data-source="Running the &lt;code&gt;git rerere&lt;/code&gt; command immediately after a conflicted automerge records the conflicted working tree files, with the usual conflict markers &lt;code&gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/code&gt;, &lt;code&gt;=======&lt;/code&gt;, and &lt;code&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/code&gt; in them. Later, after you are done resolving the conflicts, running &lt;code&gt;git rerere&lt;/code&gt; again will record the resolved state of these files. Suppose you did this when you created the test merge of master into the topic branch." onmousemove="i18n(this)">&Vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git rerere</code>  &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ocy;&gcy;&ocy; &acy;&vcy;&tcy;&ocy;&ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy;&yucy;&shchcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &scy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&mcy;&icy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&acy;&mcy;&icy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;  <code>&lt;&lt;&lt;&lt;&lt;&lt;&lt;</code> ,  <code>=======</code>  &icy;  <code>&gt;&gt;&gt;&gt;&gt;&gt;&gt;</code>  &vcy; &ncy;&icy;&khcy;. &Pcy;&ocy;&zcy;&zhcy;&iecy;, &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &vcy;&ycy; &zcy;&acy;&kcy;&ocy;&ncy;&chcy;&icy;&tcy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;, &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ycy;&jcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;  <code>git rerere</code>  &zcy;&acy;&pcy;&icy;&shcy;&iecy;&tcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;. &Pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&mcy;, &vcy;&ycy; &scy;&dcy;&iecy;&lcy;&acy;&lcy;&icy; &ecy;&tcy;&ocy;, &kcy;&ocy;&gcy;&dcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&lcy;&icy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; master &scy; &vcy;&iecy;&tcy;&kcy;&ocy;&jcy; &tcy;&iecy;&mcy;&ycy;.</span></p> <p><span data-i18n="16a46a54f02450a8565b4f05bec0714dfcab0b410fdfe01033a7d5fa76413835/b8" data-source="Next time, after seeing the same conflicted automerge, running &lt;code&gt;git rerere&lt;/code&gt; will perform a three-way merge between the earlier conflicted automerge, the earlier manual resolution, and the current conflicted automerge. If this three-way merge resolves cleanly, the result is written out to your working tree file, so you do not have to manually resolve it. Note that &lt;code&gt;git rerere&lt;/code&gt; leaves the index file alone, so you still need to do the final sanity checks with &lt;code&gt;git diff&lt;/code&gt; (or &lt;code&gt;git diff -c&lt;/code&gt;) and &lt;code&gt;git add&lt;/code&gt; when you are satisfied." onmousemove="i18n(this)">&Vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &rcy;&acy;&zcy;, &ucy;&vcy;&icy;&dcy;&iecy;&vcy; &tcy;&ocy; &zhcy;&iecy; &scy;&acy;&mcy;&ocy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ocy;&iecy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &zcy;&acy;&pcy;&ucy;&scy;&kcy;  <code>git rerere</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy; &tcy;&rcy;&iecy;&khcy;&scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ncy;&iecy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &mcy;&iecy;&zhcy;&dcy;&ucy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&mcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ycy;&mcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&iecy;&mcy;, &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy;&mcy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy; &icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&mcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ncy;&ycy;&mcy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&iecy;&mcy;. &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &tcy;&rcy;&iecy;&khcy;&scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ncy;&iecy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy;, &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &fcy;&acy;&jcy;&lcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&acy;&mcy; &ncy;&iecy; &pcy;&rcy;&icy;&dcy;&iecy;&tcy;&scy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&acy;&tcy;&softcy; &iecy;&gcy;&ocy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy;  <code>git rerere</code>  &ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &vcy; &pcy;&ocy;&kcy;&ocy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&acy;&mcy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &pcy;&rcy;&icy;&dcy;&iecy;&tcy;&scy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ucy; &rcy;&acy;&bcy;&ocy;&tcy;&ocy;&scy;&pcy;&ocy;&scy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git diff</code>  (&icy;&lcy;&icy;  <code>git diff -c</code>  ) &icy;  <code>git add</code> , &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &bcy;&ucy;&dcy;&iecy;&tcy;&iecy; &ucy;&dcy;&ocy;&vcy;&lcy;&iecy;&tcy;&vcy;&ocy;&rcy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="b39060208c71196d5b86f5a180f7fbfe656bc8b2986329cf28af3aaa4aa8f054/0c" data-source="As a convenience measure, &lt;code&gt;git merge&lt;/code&gt; automatically invokes &lt;code&gt;git rerere&lt;/code&gt; upon exiting with a failed automerge and &lt;code&gt;git rerere&lt;/code&gt; records the hand resolve when it is a new conflict, or reuses the earlier hand resolve when it is not. &lt;code&gt;git commit&lt;/code&gt; also invokes &lt;code&gt;git rerere&lt;/code&gt; when committing a merge result. What this means is that you do not have to do anything special yourself (besides enabling the rerere.enabled config variable)." onmousemove="i18n(this)">&Vcy; &tscy;&iecy;&lcy;&yacy;&khcy; &ucy;&dcy;&ocy;&bcy;&scy;&tcy;&vcy;&acy;  <code>git merge</code>  &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>git rerere</code>  &pcy;&rcy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &icy;&zcy;-&zcy;&acy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ncy;&ocy;&gcy;&ocy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy;, &acy;  <code>git rerere</code>  &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &rcy;&ucy;&kcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&acy;&iecy;&tcy; &ncy;&ocy;&vcy;&ycy;&jcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;, &icy;&lcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&iecy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &rcy;&ucy;&kcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &ecy;&tcy;&ocy; &ncy;&iecy; &tcy;&acy;&kcy;.  <code>git commit</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>git rerere</code>  &pcy;&rcy;&icy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&acy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &vcy;&acy;&mcy; &ncy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ocy; &dcy;&iecy;&lcy;&acy;&tcy;&softcy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ocy;&scy;&ocy;&bcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&acy;&mcy;&ocy;&scy;&tcy;&ocy;&yacy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; (&kcy;&rcy;&ocy;&mcy;&iecy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; rerere.enabled).</span></p> <p><span data-i18n="7aecd8a147d1a7fcec518be4b876f0a2138b0d34d93f90960ce30d11063f2de6/be" data-source="In our example, when you do the test merge, the manual resolution is recorded, and it will be reused when you do the actual merge later with the updated master and topic branch, as long as the recorded resolution is still applicable." onmousemove="i18n(this)">&Vcy; &ncy;&acy;&shcy;&iecy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&iecy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&iecy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &icy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&ocy; &pcy;&rcy;&icy; &dcy;&acy;&lcy;&softcy;&ncy;&iecy;&jcy;&shcy;&iecy;&mcy; &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&icy; &scy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&ocy;&jcy; &icy; &tcy;&iecy;&mcy;&ocy;&jcy;, &pcy;&ocy;&kcy;&acy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&icy;&mcy;&ocy;.</span></p> <p><span data-i18n="957d8871ef74fe439fea1c3e2ab3a82d7020299a8df3a5a3304d849d5cee04e4/9a" data-source="The information &lt;code&gt;git rerere&lt;/code&gt; records is also used when running &lt;code&gt;git rebase&lt;/code&gt;. After blowing away the test merge and continuing development on the topic branch:" onmousemove="i18n(this)">&Icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&ocy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&icy;  <code>git rerere</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy;  <code>git rebase</code> . &Pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&gcy;&ocy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &icy; &pcy;&rcy;&ocy;&dcy;&ocy;&lcy;&zhcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &vcy;&iecy;&tcy;&kcy;&icy; &tcy;&iecy;&mcy;&ycy;:</span></p> <div> <div> <pre class="hljs language-lua">              o<span class="hljs-comment">---*---o-------o---o topic</span>
             /
    o<span class="hljs-comment">---o---o---*---o---o---o---o   master</span>

        $ git rebase master topic

                                  o<span class="hljs-comment">---*---o-------o---o topic</span>
                                 /
    o<span class="hljs-comment" title="---o---o---*---o---o---o---o   master">---&ocy;---&ocy;---*---&ocy;---&ocy;---&ocy;---&ocy; &khcy;&ocy;&zcy;&yacy;&icy;&ncy;</span></pre> </div> </div> <p><span data-i18n="4c8f49cd8b928d03700c37a27d59cfc0b6f544788f3238b8deca2ee530d5a0f5/c2" data-source="you could run &lt;code&gt;git rebase master topic&lt;/code&gt;, to bring yourself up to date before your topic is ready to be sent upstream. This would result in falling back to a three-way merge, and it would conflict the same way as the test merge you resolved earlier. &lt;code&gt;git rerere&lt;/code&gt; will be run by &lt;code&gt;git rebase&lt;/code&gt; to help you resolve this conflict." onmousemove="i18n(this)">&vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git rebase master topic</code>  , &chcy;&tcy;&ocy;&bcy;&ycy; &bcy;&ycy;&tcy;&softcy; &vcy; &kcy;&ucy;&rcy;&scy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy;, &pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy; &vcy;&acy;&shcy;&acy; &tcy;&iecy;&mcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy;&acy; &kcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &vcy; &vcy;&ocy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy;. &Ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy;&ucy; &kcy; &tcy;&rcy;&iecy;&khcy;&scy;&tcy;&ocy;&rcy;&ocy;&ncy;&ncy;&iecy;&mcy;&ucy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yucy; &icy; &bcy;&ucy;&dcy;&iecy;&tcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;&acy;&tcy;&softcy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &vcy;&ycy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&lcy;&icy; &rcy;&acy;&ncy;&iecy;&iecy;.  <code>git rerere</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy;  <code>git rebase</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&mcy;&ocy;&chcy;&softcy; &vcy;&acy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy;&tcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;.</span></p> <p><span data-i18n="0e7885e0970b29acf6f97ce373d96a2f1d8d5b5b8cc8cb201c133d1b71d68153/c9" data-source="[NOTE] &lt;code&gt;git rerere&lt;/code&gt; relies on the conflict markers in the file to detect the conflict. If the file already contains lines that look the same as lines with conflict markers, &lt;code&gt;git rerere&lt;/code&gt; may fail to record a conflict resolution. To work around this, the &lt;code&gt;conflict-marker-size&lt;/code&gt; setting in &lt;a href=&quot;gitattributes&quot;&gt;gitattributes[5]&lt;/a&gt; can be used." onmousemove="i18n(this)">[&Pcy;&Rcy;&Icy;&Mcy;&IEcy;&CHcy;&Acy;&Ncy;&Icy;&IEcy;]  <code>git rerere</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &dcy;&lcy;&yacy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;. &IEcy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy; &ucy;&zhcy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&yacy;&tcy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &scy; &mcy;&acy;&rcy;&kcy;&iecy;&rcy;&acy;&mcy;&icy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;,  <code>git rerere</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&acy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &ecy;&tcy;&ucy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;&ucy;, &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&ucy;  <code>conflict-marker-size</code>  &vcy;  <a href="gitattributes.html">gitattributes[5]</a> .</span></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-rerere">https://git-scm.com/docs/git-rerere</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-reset.html">
                            git reset                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-restore.html">
                            git restore                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rev-list.html">
                            git rev-list                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rev-parse.html">
                            git rev-parse                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-revert.html">
                            git revert                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-rm.html">
                            git rm                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-send-email.html">
                            git send-email                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-rerere.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>